package com.xci.platform.auth.controller;

import com.xci.platform.auth.core.AuthHelper;
import com.xci.platform.auth.core.AuthUser;
import com.xci.platform.auth.service.LogService;
import com.xci.platform.controller.BaseController;

import javax.annotation.Resource;

/**
 * 权限子系统控制器基类
 */
public abstract class AuthBaseController extends BaseController {
    @Resource
    protected AuthHelper authHelper;

    /**
     * 当前操作用户
     */
    protected AuthUser currentUser() {
        return authHelper.currentUser();
    }
    /**
     * 日志服务
     */
    @Resource
    protected LogService logService;
}
